package com.iv.durian.cloud;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.PropertySource;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.sql.DataSource;

@SpringBootApplication
@ServletComponentScan
@EnableSwagger2
@EnableFeignClients
@EnableDiscoveryClient
@PropertySource(value = "classpath:application-version.properties",encoding = "UTF-8")
public class Application implements CommandLineRunner {

    @Autowired
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    public void run(String... args) throws Exception {
        System.out.println("durian cloud application started......... " );
    }

}
